package com.enjoyor.health.HGPT.core.enums;

import java.util.Objects;

/**
 * @author Zhu Min
 * @date 2023/11/17 14:38
 */
public enum PackageType {

    TYPE_1(1, "银江全身报告"),
    TYPE_2(2, "银江展会体检包"),
    TYPE_3(3, "全身疾病筛查");

    private Integer type;
    private String typeName;

    PackageType(Integer type, String typeName) {
        this.type = type;
        this.typeName = typeName;
    }

    public static String getTypeName(Integer type){
        for (PackageType value : PackageType.values()) {
            if (Objects.equals(type, value.type)){
                return value.typeName;
            }
        }
        return null;
    }
}
